home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
jpi
/
musdefed.frm
< prev
next >
Wrap
Text File
|
1997-12-05
|
3KB
|
108 lines
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "Music Definition Editor"
ClientHeight = 1890
ClientLeft = 5175
ClientTop = 1755
ClientWidth = 4455
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1890
ScaleWidth = 4455
Begin VB.TextBox Text2
Height = 285
Left = 2760
TabIndex = 2
Top = 840
Width = 1575
End
Begin VB.TextBox Text1
Height = 285
Left = 2760
TabIndex = 1
Top = 240
Width = 1575
End
Begin VB.ListBox List1
Height = 1620
Left = 120
TabIndex = 0
Top = 120
Width = 2535
End
Begin VB.Label Label2
Caption = "Filename"
Height = 255
Left = 2760
TabIndex = 4
Top = 600
Width = 1575
End
Begin VB.Label Label1
Caption = "Name"
Height = 255
Left = 2760
TabIndex = 3
Top = 0
Width = 1575
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
On Error Resume Next
Call Load
Call UpdateList
List1.ListIndex = 0
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call Save
End Sub
Private Sub List1_Click()
Call UpdateProperties
End Sub
Private Sub List1_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 46 Then
MaxMusicFiles = MaxMusicFiles - 1
For i = List1.ListIndex To MaxMusicFiles + 1
Musicfiles(i).filename = Musicfiles(i + 1).filename
Musicfiles(i).tracktitle = Musicfiles(i + 1).tracktitle
Next i
List1.ListIndex = List1.ListIndex - 1
Call UpdateList
Call UpdateProperties
End If
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
mnum = List1.ListIndex
If mnum > 0 Then
Musicfiles(mnum).tracktitle = Text1.Text
Call UpdateList
Else
MaxMusicFiles = MaxMusicFiles + 1
currtext = Text1.Text
Call UpdateList
List1.ListIndex = MaxMusicFiles
Call UpdateList
Text1.Text = currtext
Text1.SelStart = Len(Text1.Text)
Musicfiles(mnum).tracktitle = Text1.Text
End If
End Sub
Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
mnum = List1.ListIndex
If mnum > 0 Then
Musicfiles(mnum).filename = Text2.Text
End If
End Sub